import request from "@/util/request"

export function getOrderTotalNum(searchContent) {
    return request({
        url: "/order/getOrderTotalNum",
        method: "get",
        params: {
            searchContent
        }
    })
}

export function getOrderList(currentPage, pageNum, searchContent) {
    return request({
        url: "/order/getOrderList",
        method: "get",
        params: {
            currentPage,
            pageNum,
            searchContent
        }
    })
}

export function editOrderInfo(order_id, order_price, order_pay, is_send) {
    return request({
        url: "/order/editOrderInfo",
        method: "post",
        data: {
            order_id,
            order_price,
            order_pay,
            is_send
        }
    })
} 